import {RouteRecordRaw} from "vue-router";
import {Layout} from "@/router/constant";
import {renderIcon} from "@/utils";
import {FolderOpenTwotone} from "@vicons/antd";

const routes: Array<RouteRecordRaw> = [
  {
    path: '/admin',
    name: 'admin',
    redirect: '/admin/basic',
    component: Layout,
    meta: {
      title: '管理员',
      icon: renderIcon(FolderOpenTwotone),
      sort: 1,
    },
    children: [
      {
        path: 'basic',
        name: 'basic',
        meta: {
          title: '管理员',
        },
        component: () => import('@/views/admin/basic.vue'),
      },
    ],
  },
];

export default routes;
